In this case, I think you can just make `step` an `int` in the first place.