Error 186 error C2668: pow : ambiguous call to overloaded function

Standard

How I solved the above compilation error.

BEFORE –> BYTE AND_Value = (BYTE) pow(2, 7-data.rem);

A quick solution by cast the int to double

AFTER –> BYTE AND_Value = (BYTE) pow((double)2, (double)(7-data.rem));