@classmethod
def extract(cls, val):
    """
        Extracts value from Optional() instance

        :param val:
        :return: original value if it's not Optional instance else
            value of instance
        """
    if isinstance(val, cls):
        return val.getval()
    return val
