code: public boolean evaluate(Object target) {
          try {
              return (Boolean) expression.evaluate(target);
          }
          catch (ClassCastException e) {
              throw new IllegalArgumentException(
                      "Specified expression does not evaluate to a boolean value", e);
          }
      }
docs: {@inheritDoc}