I tend to use the safe cast where possible. `(inpu...
# announcements
a
I tend to use the safe cast where possible.
(input as? MyObject)?.doThing()
is all over my codebase. Granted - you can also split that up to handle the case where the cast fails.