Add usage of dynamic_cast