list -> array and array -> list