from typing import Union
import math


def convert_heading(degree: Union[int, float]) -> Union[int, float]:
    """
    Convert heading to other convention and unit

    Args:
        degree: Starting north increasing clockwise

    Returns:
        object (Union[int, float]): Heading angle in rad starting east increasing anti-clockwise and conversion
    """
    if not (isinstance(degree, float) or isinstance(degree, int)):
        raise TypeError("input must be a float or int")

    float_degree = float(degree)
    if float_degree == 0:
        temp_degree: float = 0
    else:
        temp_degree = 360 - float_degree
    temp_degree = temp_degree + 90
    return math.radians(temp_degree)