Why my cast has to be in println() method ?

Printable View