oh you mean parent class not upper bound. you can say castToParentClassIfPossible or castToParentClassOrError