Cast position to int