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 32-bit unsigned integer
( type ) expression

 CUInt (expr)

 longword (expr)
explicit conversion to 16-bit integer
( type ) expression

 CShort (expr)

 CInt (expr)

 smallint (expr)

 integer (expr)
explicit conversion to 16-bit unsigned integer
( type ) expression

 CUShort (expr)

 word (expr)
explicit conversion to 8-bit integer
( type ) expression

 CSByte (expr)

 CByte (expr)

 shortint (expr)
explicit conversion to 8-bit unsigned integer
( type ) expression

 CByte (expr)

 CUByte (expr)

 byte (expr)
explicit conversion to 64-bit integer
( type ) expression

 ClngInt (expr)

 Int64 (expr)

 Clng (expr)
explicit conversion to 64-bit unsigned integer
( type ) expression

 CULngInt (expr)

 QWord (expr)

 CULng (expr)
explicit conversion to 32-bit real number
( type ) expression

 CSng (expr)

 single (expr)
explicit conversion to 64-bit real number
( type ) expression

 CDbl (expr)

 double (expr)
explicit conversion to boolean
( type ) expression

 Boolean (expr)

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