C++ - Explicit type conversions
By using an explicit conversion, you can specify exactly what type you want to work with. Thanks to this we can overwrite automatic conversion.C++
Other pieces of example codes:y = (signed char)(x * y)
y =(double)(x * y)
y = (unsigned short)(x * y)
z = (long)(x * y)
b3 = (bool) 0
y = (unsigned long)(x * y)
Explicit type conversions in another programming language: