code: def to_numeric(arg):
      
      if isinstance(arg, str):
          if '.' in arg:
              return float(arg)
          else:
              return int(arg)
      return arg
docs: Converts a string either to int or to float.
      This is important, because e.g. {"!==": [{"+": "0"}, 0.0]}