faster cast with lrintf