public static String coercePowerloomObjectToString(Stella_Object renamed_Object, NamedDescription type) {
    type = type;
    { Object old$PrintreadablyP$000 = Stella.$PRINTREADABLYp$.get();

      try {
        Native.setBooleanSpecial(Stella.$PRINTREADABLYp$, true);
        { Surrogate testValue000 = Stella_Object.safePrimaryType(renamed_Object);

          if (Surrogate.subtypeOfStringP(testValue000)) {
            { StringWrapper object000 = ((StringWrapper)(renamed_Object));

              return (object000.wrapperValue);
            }
          }
          else if (Surrogate.subtypeOfP(testValue000, RDBMS.SGT_LOGIC_LOGIC_OBJECT)) {
            { LogicObject object000 = ((LogicObject)(renamed_Object));

              return (object000.surrogateValueInverse.symbolName);
            }
          }
          else {
            return (Native.stringify(renamed_Object));
          }
        }

      } finally {
        Stella.$PRINTREADABLYp$.set(old$PrintreadablyP$000);
      }
    }
  }