code: def ToVM(self):
          
          if self.Type == ContractParameterType.String:
              return str(self.Value).encode('utf-8').hex()
          elif self.Type == ContractParameterType.Integer and isinstance(self.Value, int):
              return BigInteger(self.Value)
          return self.Value
docs: Used for turning a ContractParameter item into somethnig consumable by the VM
  
          Returns: