Provide getInteger as a convenience method