fix Issue 13000 - Casts should be removed to utilize features of inout
Merge pull request #2279 from 9rnsr/fix13000

Issue 13000 - Casts should be removed to utilize features of inout