Adding helper method to convert an array of models to profiles.