Use concept of parentObjectsOfType to avoid dynamic cast in application code.
p4#: 20887