Added Array Casting

Added casting of array when original object was an array and new object
is a string.