add type casting to the parameter of the pow function