Given an object reference, before you use it, you can:

  • Test it to ensure that it references an object instance using the VALID-OBJECT built-in function
  • Validate the type of the object represented by the object reference using the TYPE-OF built-in function