Examples of casting
// Casting a float literal to a type int.
// Without the cast operator, this would be a
// compile-time error, because itís a narrowing
// From class average applet (Figure 2.9)
average = (double) total / counter;
System.out.println( "Class average is " + average );