Add cast to int to Lastchange helper