docs: def type_handler_object(val, objtype):
      """
      return the deserialized (restored) value from the registered handler for the type
      """
      handler = handlers.get(objtype)
      if handler:
          return handler().restore(val)
      else:
          return objtype(val)