Fixed Object type cast when converting from List to Array