Java - 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.Java
Other pieces of example codes:y = (short)(x * y)
y = (long)(x * y)
(float)x / 0xa
y =(double)(x * y)
b3 = (boolean) 0
Explicit type conversions in another programming language: