Removed unnecessary asInstanceOf
Merge pull request #149 from alexarchambault/refactor/noasinstanceof

Removed unnecessary asInstanceOf