Using a cast operator to change type

We learned in an earlier lesson that when the insertion operator is used along with cout to display a variable of type char:

The code in Listing 6 uses a cast operator to force the numeric value of a variable of type char to be displayed.