docs: def to_bool(value):
      """
      Convert a value to boolean
      :param value: the value to convert
      :type value: any type
      :return: a boolean value
      :rtype: a boolean
      """
      if value is None:
          return None
      if isinstance(value, bool):
          return value
      elif isinstance(value, str):
          if value=="no":
              return False
          elif value=="yes":
              return True