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 32-bit integer
( type ) expression CInt (expr) CLong (expr) integer (expr) longint (expr) explicit conversion to 16-bit integer
( type ) expression CShort (expr) CInt (expr) smallint (expr) integer (expr) explicit conversion to 8-bit unsigned integer
( type ) expression CByte (expr) CUByte (expr) byte (expr) explicit conversion to 64-bit unsigned integer
( type ) expression CULngInt (expr) QWord (expr) CULng (expr)Example
Other pieces of example codes:y = (uint)(x * y)
y = (ushort)(x * y)
y = (byte)(x * y)
y = (ulong)(x * y)
y =(double)(x * y)
z = (int)(x * y)
Explicit type conversions in another programming language: