def METHOD_NAME(self, output_type=None):
    """Cast the Any back to its original type.
    Parameters
    ----------
    output_type: output_type, optional
        Used when the Any instance was retrieved from the server.
        Not necessary when the instance was created using the
        :func:`ansys.dpf.core.Any.new_from`
    Returns
    -------
    type
        Original object instance
    """
    self._internal_type = output_type if output_type is not None else self._internal_type
    for type_tuple in Any._type_to_new_from_get_as_method(self):
        if self._internal_type == type_tuple[0]:
            # call the get_as function for the appropriate type
            internal_obj = type_tuple[2](self)
            if (
                self._internal_type is int
                or self._internal_type is str
                or self._internal_type is float
            ):
                obj = internal_obj
            else:
                # get current type's constructors' variable keyword for passing the internal_obj
                internal_obj_keyword = type_to_internal_object_keyword()[type_tuple[0]]
                # wrap parameters in a dictionary for parameters expansion when calling
                # constructor
                keyword_args = {internal_obj_keyword: internal_obj, "server": self._server}
                # call constructor
                obj = type_tuple[0](**keyword_args)
            return obj
    raise TypeError(f"{output_type} is not currently supported by the Any class.")