MongoConverter and JAXBElement

Hello All.
What is the best way to retrieve JAXBElement content from a collection ?
As of now we keep getting

Failed to instantiate jakarta.xml.bind.JAXBElement using constructor NO_CONSTRUCTOR with arguments

error while retrieving data.
I know this is due to JAXBElement constructor nature, is there a way to customize this handling in an efficient way ?

Thanks in advance,
Sante.