static_cast for floating point generator.
Modified no-op for non-debug build.