I'm iterating through XElement items, but they arent recognized as XElement inside the loop. Option Strict on disallows late binding

I Have a xml file where I want to iterate through every element “Analytic”, and in each element I want to extract the value of the element “SynthCode”, I did as they said in this link https://www.uipath.com/kb-articles/how-to-iterate-and-read-xml-documents but each item in the loop isn’t even recognized as an XElement object, as you can see below.

And If I write the method anyways It says option strict on disallows late binding.

What is strange is that if I write item.getType.toString in the message box it prints that it is in fact an XElement
Imgur: The magic of the Internet.

This doesn’t make any sense to me. It seems to me that i’m doing exactly as the link says, what am I missing?

I found the problem. If anyone else has this issue change the typeArgument to the desired one on the forEach loop properties window