@staticmethod
def is_type(value, expected_type):
    """
        Check type of value to be expected one.

        :param value: any value
        :param expected_type: any type
        :returns: True when given value has expected type.
        """
    try:
        return isinstance(value, expected_type)
    except TypeError:
        return False
