@classmethod
def toBool(cls, value):
    """ converts to bool

        :param value: variable to convert
        :type value: any
        :returns: result in bool type
        :rtype: :obj:`bool`
        """
    if type(value).__name__ == 'str' or type(value).__name__ == 'unicode':
        lvalue = value.strip().lower()
        if lvalue == 'false' or lvalue == '0':
            return False
        else:
            return True
    elif value:
        return True
    return False
