def is_type(obj, type_name):
    """
    Type check based on class name.

    :param obj:
    :param type_name:
    :return:
    """
    is_same_type = type(obj).__name__ == type_name
    return is_same_type