code: protected boolean extractBoolean(Object val) {
      try {
        return (Boolean) val;
      } catch (ClassCastException cce) {
        logException(cce);
        return false;
      }
    }
docs: Extracts a Boolean from a result that consists of a Boolean only.
  @param val
  @return the Boolean