To convert uipath.microsoftoffice365.models.office365message[] to list<mailmessage>

have a look here:

maybe it can also be shortened to:
var_ListOfficeMailMessages.Cast(Of System.Net.Mail.MailMessage).toList