Deal with function type conversions for msvc

[#74774412]