Null check of typeas expression