What is a cast operator?

For the moment, suffice it to say that the purpose of a cast operator is to force a conversion from one type to another.

In the sample program to be discussed later, a value of type char will be temporarily converted to type short using a cast operator to control how the value is displayed.