Turn collection to array