Replaced the type cast (twice with 'is) with better syntax (once with 'as')
Merge pull request #209 from sean-gilliam/replace-is-check-cast-use-to-as-check-use

Replaced the type cast (twice with 'is) with better syntax (once with 'as')