Type casting allows a program to access an object as if it had a type different from its declared type.