The Value class has 3 methods:
You can use the getValue() method to obtain the data in that particular Value, it will return a double type.
If you want to cast the double data type to an integer data type, just do:
int newValue = (int) values.getValue();
Where  is the position of the Value you want to access.