add type casting for the parameter in the pow function