if you are enforcing an integer, shouldn't this be (int)