code: def convert_cast(node, **kwargs):
      
      name, input_nodes, attrs = get_inputs(node, kwargs)
  
      dtype = attrs["dtype"]
  
      # dtype can be mapped only with types from TensorProto
      # float32 is mapped to float and float64 to double in onnx
      # following tensorproto mapping https://github.com/onnx/onnx/blob/master/onnx/mapping.py
      if dtype == 'float32':
          dtype = 'float'
      elif dtype == 'float64':
          dtype = 'double'
  
      node = onnx.helper.make_node(
          "Cast",
          input_nodes,
          [name],
          to=getattr(onnx.TensorProto, dtype.upper()),
          name=name,
      )
      return [node]
docs: Map MXNet's Cast operator attributes to onnx's Cast operator
      and return the created node.