public static Boolean toBoolean(boolean b){
  return b ? Boolean.TRUE : Boolean.FALSE;
}

public static Boolean toBoolean ( boolean b ) { return b ? Boolean . TRUE : Boolean . FALSE ; }
cast a boolean value to a boolean object ( reference type )
