Set to array Set to ArrayList and vice versa