BUG: add cast to int from float

Not sure why this stopped working