This method changes the behavior of an object to that defined by any ancestor of the true class of the object.
SOMObject receiver; SOMClass ancestor; boolean rc; rc = somCastObj(receiver, ancestor);