Type Conversion

Integers and floating-point numbers are automatically converted when one is given and the other is required. Floating-point values can be truncated to integers using a cast operator. When converting floating-point numbers to integers, no rounding is performed.

(int)2.5    becomes 2 not 3