=== Message

Primary: Replace this type-check-and-cast sequence with an "as" and a null check.

Secondary: Replace this cast

