code: def value_convert(self, value, value_type):
          
          CONVERSION_OPTIONS = {
              "str": str,
              "int": int,
              "float": float,
              # Treat booleans specially
              "bool": (lambda val: val.lower() in ("true", "1")),
              # Auto-guess the type
              "auto": self.make_value,
          }
  
          try:
              return CONVERSION_OPTIONS[value_type](value)
          except (TypeError, ValueError):
              self.notify_user("Bad type conversion")
              return None
docs: convert string into type used by `config functions`