J2EE Spring Hibernate Chapter 9: Reference Variable Casting

In the previous chapter we took a detailed look at polymorphism, overloading and overriding. While going through contents about Inheritance & overloading you would have seen that objects of one type were being considered or used as another. Java has a feature called Casting, wherein an object of one type can be cast into an object of another type (As long as its valid)

For example, this line of