int powerOfNumber = (int) Math.pow(number, power);

Read more of this post