You can specify an explicit conversion by using a type cast, like this:
int numerator = 5, denominator = 7;
double bad = numerator / denominator; // OOPS!!! now 0
double good = static_cast<double>(numerator) / denominator;
There are four named casts. We'll meet others later. Bjarne Stroustrup, (the inventor of C++) has listed several reasons why you should use these new-style casts on his C++ FAQ.