Use ResultSet.getString() for types that support it, getObject().toString() otherwise.