Fixes #15690
try with string cast
Merge pull request #18379 from thatch45/15690

Fixes #15690