I forget whose quote this is - The computer is a wonderful machine, it does what I tell it to do, not what I want it to do.
Your point taken, but that is a problem in programming language X, which has Y type system, for all permissible values of X and Y.