replace deprecated shared_dynamic_cast (fixes #25)
Merge pull request #26 from Ram-Z/issue25

replace deprecated shared_dynamic_cast (fixes #25)