Correct use of dynamic casting

No match.