replace deprecated shared_dynamic_cast (fixes #9)
Merge pull request #10 from Ram-Z/issue9

replace deprecated shared_dynamic_cast (fixes #9)