Must change the type of the reference
Therefore, the first statement in Listing 10
- requires that a cast (shown in red in Listing 10)
- be used to change the type of the reference
- back to a type on which the method can be called.
There are a couple of choices in this regard.