TypeMismatchException when doing a IsA comparison

[code]DIM t2 As Integer = 123
DIM t3 As Auto = t2

if (t3 IsA Xojo.IO.FolderItem) then
MsgBox “oink”
end if[/code]

I sort of understand why this doesn’t work, but isn’t the whole point of doing a comparison like that is because we don’t know what’s in t3 (if it was being passed as parameter to a third party library)… So now I need to break out introspection, check if it’s a class and then check if it’s a FolderItem…

I think the hint is in the LangRef

in your example… T3 is not an object