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.
explicit conversion to boolean
( type ) expression


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)
Languages: en hu cz sk