Resolve compilation error due to incorrect dynamic_cast.
Resolve compilation error due to incorrect dynamic_cast.


Former-commit-id: e8aaa28ab4ddd24fef11162c69a9eeab908a0b74
kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework