Further down these are cast into more native types, and then walk out into public API's.
And there once more you need to do somewhat strict data-validation.
For these cases, typing rules and annotations will be a boon.
And do note, that there is more common a case of human error or refactoring error that causes problem. Someone sending in a default [] array in an object, and somewhere else it's an expected Boolean.