Actually, one of the benefits of strong typing (without side effects) is that the correct implementation is sometimes the only one that compiles.
For example, if you know that a function takes a generic list and returns an integer, then the list’s length is pretty much the only non-trivial computation it can perform.