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!