add method to retrieve the underlying integer val