I'm not sure I understand the use case for this, but I had a go in the playground
let a = [3]
a = [''] // this works?
a[0].length // but this fails?
Error message is> expecting possible candidates all failed: candidate array failed: expecting number but got string. candidate object failed: missing field 'length' but got number.