No need to cast to int here. The comparison is valid either way.