Fixed ClassCastException when returning stored numerical fields.