The author of that link references the top 25 bugs, one (#12) of which is Null pointer dereferencing- static typing outright eliminates that bug.
Not to mention that range checking is also fixable by using optionals rather than assuming the existence of a value.