[boost] boost::any_cast gives build errors with VS2022, boost v1.82 and C++17