Casting Objects

Object-oriented programming supports the ability to change the class of an instantiated object to its parent class, descendant class, or a compatible class. To reference the properties of a descendant class that are not in the parent class, the parent class must first be cast into the descendant. When an object is cast into another class, the original class is overwritten within the scope level of the cast.

For more information about casting objects in PSL, refer to the Casting Objects in PSL section.