public static Long toLong(Object o) throws PageException {
  if (o instanceof Long)   return (Long)o;
  return Long.valueOf(toLongValue(o));
}

public static Long toLong ( Object o ) throws PageException { if ( o instanceof Long ) return ( Long ) o ; return Long . valueOf ( toLongValue ( o ) ) ; }
cast a object to a long object ( reference type )
