Check the dynamic_cast result in hanlder_proxy