Conversion between Array and List types