issue #2771: static_cast -> dynamic_cast