add a dynamic_cast sample.