A file-wide suppression is problematic because it will wave through future violations, potentially bugs.
Fix that by using per-statement casts.
This refactor doesn’t change behavior because the now explicit casts were previously done implicitly.
Similar to commit 8b5a4de904b414fb3a818732cd0a2c90b91bc275