from typing import Any


def get_original_type_from_optional(*args: Any) -> Any:
    """
    Returns first value from union args that is not None.
    :return: some type that is not none in union
    """
    unions_args: tuple[type, ...] = args[:2]
    if unions_args[0] is not None:
        return unions_args[0]

    else:
        return unions_args[1]