from typing import Any


def is_of_type_by_str(value: Any, type_str: str):
    """
    Check if the type of ``value`` is ``type_str``.

    Parameters
    ----------
    value: any
        a value
    type_str: str
        the expected type of ``value``, given as a str

    Examples
    --------

    >>> is_of_type_by_str(2, 'int')
    True
    >>> is_of_type_by_str("2.5", 'float')
    False

    Returns
    -------
    boolean
    """
    return value.__class__.__name__ == type_str