Created a method to retrieve the integer value of the tag