It simply makes the code fail more spectacularly.
(strong) dynamically typed languages have type errors that fail at runtime whereas statically typed languages have type errors that fail at compile time, comparing how they fail isn't important because the only distinction is when they fail (in which case failing as early as possible is better)