Get PmiNote from Note collection in C#

Hello all, I have to get the Pminote from NoteCollection with the help of Foreach loop but I am getting an error as to get the PmiNote from NoteCollection.
I get an error to convert Note to PmiNote.
Could you help me to get or convert it to PmiNote.

NXOpen.Annotations.NoteCollection oPmiNote = oWorkPart.Notes;
foreach (NXOpen.Annotations.Note oNote in oPmiNote)

Next

Thank you.