If you remove the `$` from `myChar: char = $mydata[myRow][myCol]` and convert the constants to chars as well, it should work.
Thanks for giving information about this issue, the confusing error message should be fixed with <https://github.com/nim-lang/Nim/pull/21182>
