code: def _convert_value(vtype, value):
          
          # Normalize value
          value = value.strip()
  
          if vtype == TYPE_STRING:
              # Nothing to do
              return value
          elif vtype in TYPES_INT:
              return int(value)
          elif vtype in TYPES_FLOAT:
              return float(value)
          elif vtype in TYPES_BOOLEAN:
              # Compare lower-case value
              return value.lower() not in ("false", "0")
          elif vtype in TYPES_CHAR:
              return value[0]
  
          # No luck
          raise ValueError("Unknown value type: {0}".format(vtype))
docs: Converts the given value string according to the given type
  
          :param vtype: Type of the value
          :param value: String form of the value
          :return: The converted value
          :raise ValueError: Conversion failed