from typing import Any


def bytes_to_string(obj: Any):
    """
    Converts a bytes object into a string
    :param obj: Any type of object
    :return: If the object is of type bytes it returns it's string representation, else returns
    the object itself
    """
    if isinstance(obj, bytes):
        return obj.decode('utf-8')
    else:
        return obj