Insert static_cast for floating point number