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