Remove spurious int cast in between two longs