cast isn't necessary, pnSleepTime is already an int64*