Implicit Compiler does this automatically example is integerādouble. It can do this easily. sometimes it will also allow āunsafeā operations like doubleāinteger Explicit use the static_cast operator static_cast<new_type>(expression) std::cout << static_cast<int>(5.5); // explicitly convert double value 5.5 to an int