code: public static Boolean toBoolean(Object o) throws PageException {
  	if (o instanceof Boolean) return (Boolean) o;
  	return toBooleanValue(o) ? Boolean.TRUE : Boolean.FALSE;
  
      }
docs: cast a Object to a Boolean Object(reference type)
  
  @param o Object to cast
  @return casted Boolean Object
  @throws PageException