Remove using "as" in ways it would help mask errors.

This will cause earlier InvalidCastException instead of later NullReferenceException as it would be with abusing *as*.