Fixed bug casting List to Array