code: def _cast_value(value, _type):
      
      if _type.upper() == 'FLOAT64':
          return float64(value)
      elif _type.upper() == 'FLOAT32':
          return float32(value)
      elif _type.upper() == 'INT32':
          return int32(value)
      elif _type.upper() == 'UINT16':
          return uint16(value)
      elif _type.upper() == 'INT16':
          return int16(value)
      elif _type.upper() == 'BOOLEAN':
          return uint8(value)
      else:
          return float64(value)
docs: cast value to _type