Change the event value variable to the one that is cast to int