code: def convertafield(field_comm, field_val, field_iddname):
      
      convinidd = ConvInIDD()
      field_typ = field_comm.get('type', [None])[0]    
      conv = convinidd.conv_dict().get(field_typ, convinidd.no_type)
      return conv(field_val, field_iddname)
docs: convert field based on field info in IDD