What is casting?
There are two types of casting, casting among primitive numeric types and casting among object references. Casting among numeric types is used to convert larger values, like double values, to smaller values, such as byte values. Casting among object references is used to refer to an object by a compatible class, interface, or array type reference.