boost::type_erasure::bad_any_cast
// In header: <boost/type_erasure/exception.hpp> class bad_any_cast : public std::bad_cast { };
Exception thrown when an any_cast to a reference or value fails.