casting to ints before comparing