A resource is accessed using a type incompatible with its actual type.
Validate types at trust boundaries; avoid unsafe casts.