code: public static Long toLong(Object o) throws PageException {
  	if (o instanceof Long) return (Long) o;
  	return Long.valueOf(toLongValue(o));
  
      }
docs: cast a Object to a Long Object(reference type)
  
  @param o Object to cast
  @return casted Long Object
  @throws PageException