* @param n
   * @param module
   * @param environment
   * @return LogicObject
   */
  public static LogicObject getNthLogicObject(Stella_Object sequence, int n, Module module, Environment environment) {
    { Stella_Object value = PLI.getNthValue(sequence, n, module, environment);

      if (Stella_Object.isaP(value, Logic.SGT_LOGIC_LOGIC_OBJECT)) {
        return (((LogicObject)(value)));
      }
      else {
        { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

          stream000.nativeStream.print("Can't coerce `" + value + "' to a LOGIC-OBJECT.");
          throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
        }
      }
    }
  }