String was being cast incorrectly on array value, its now correctly being cast on the string var