Eliminate unnecessary FPU errors by not possibly casting NANs as ints.