There's much more to errors than just types. The source of most of my errors are failures to account for corner cases in input data that I have no control over
Thinking I’m dealing with an Object A when I have object B.
Not realizing that nil is a valid thing to be returned from code that at first glance shouldn’t return nil.
Plus, accidentally writing super slow n+1 queries. And accidentally loading too much data.
Both give you super fast feedback and a lot of issues can be solved before you finally launch your software for the first time. But neither will save you from bad design or misunderstanding your requirements.