public Object convertJavaToCyc(final Object term) throws ParseException {
    if (!myClass.isInstance(term)) {
      throw new IllegalArgumentException(
              this + " can only convert objects of type " + myClass.getName() + ". "
              + term + " is of type " + term.getClass().getName());
    } else {
      return convertTypedJavaToCyc(myClass.cast(term));
    }
  }