Remove unsafe casts from LinearCongruentialEngine.popFront