A.7. Casting

You can convert from one data type to another by casting. A cast is denoted by type, where the type is int, float, and so on, as shown in the following example:

int x = 1;
real y = 3.14159;
int z = x+((int) y);   /* z = 4 */