My friend told me this riddle:

"A year ago my age was squarable, after one year it will be cubicable. How old am I now?"

(pardon the bad translation)

So.. by cubing and squaring different numbers you can figure out the current age is 26 (5^2=25 and 3^3=27)

But I can't solve it mathematically

I get stuck at thinking the way to solve it is either:

x^3=2+y^2

or:

x+1 = z^3

x-1 = y^2

Either way, I can't get any further. How do you solve this riddle mathematically? Or is it even possible?