* @return String
   */
  public static String nameToString(Stella_Object name) {
    if (name != null) {
      { Surrogate testValue000 = Stella_Object.safePrimaryType(name);

        if (Surrogate.subtypeOfP(testValue000, Stella.SGT_STELLA_GENERALIZED_SYMBOL)) {
          { GeneralizedSymbol name000 = ((GeneralizedSymbol)(name));

            return (name000.symbolName);
          }
        }
        else if (Surrogate.subtypeOfStringP(testValue000)) {
          { StringWrapper name000 = ((StringWrapper)(name));

            return (name000.wrapperValue);
          }
        }
        else {
        }
      }
    }
    return (null);
  }