fix Issue 11489 - Improper implicit cast to immutable.
Merge pull request #2749 from 9rnsr/fix11489

Issue 11489 - Improper implicit cast to immutable.