public static Surrogate safeLogicalType(Stella_Object self) {
    { Object old$SuppressuntypedtypeerrorP$000 = Logic.$SUPPRESSUNTYPEDTYPEERRORp$.get();

      try {
        Native.setBooleanSpecial(Logic.$SUPPRESSUNTYPEDTYPEERRORp$, true);
        return (Logic.logicalType(self));

      } finally {
        Logic.$SUPPRESSUNTYPEDTYPEERRORp$.set(old$SuppressuntypedtypeerrorP$000);
      }
    }
  }