title: ResultSet getObject<T> convention on NULLs
body: <p>I was looking for a nice-looking way to extract a nullable value from a ResultSet, as opposite to wasNull. Documentation (API spec) guarantees that "untyped" getObject (returning Object) returns null when the column contains NULL, making the following construct valid: <code>(Boolean)rs.getObject(1)</code>.</p>
  
  <p>Naturally, I would prefer to do <code>rs.getObject(1, Boolean.class)</code> - but, for some reason, for the typed overload no such guarantees are provided.</p>
  
  <p>Or are they? Maybe I am just missing something? I found nothing for this particular oveload at <a href="http://docs.oracle.com/javase/7/docs/api/java/sql/ResultSet.html" rel="nofollow">here</a> , and JDBC spec seems to overlook such overloads entirely.</p>
  
  <p>So, do NULLs get converted to nulls by <code>rs.getObject(1, Boolean.class)</code>, or don't they, or is that implementation-dependent, or maybe it depends on some custom conversions defined in an application?</p>