I am using aws amplify and it returns all of its results into models and their type is something like List<ResourceSubCategory>. But I would like them in standard swift arrays so I can use all the functionality like .first and such. How can this be done easily?
My error: Cannot convert value of type 'List<ResourceSubCategory>?' to expected argument type '[ResourceSubCategory]'
Thank you!
How is List defined in amplify ? You should probably write a converter that explore all elements in List and append them in an Array.