Explicitly Assign Type From Dictionary

The AI that I use to help me with Xojo coding prefers that I explicitly assign a type whenever recovering data from a Dictionary so:

Var boatLength As Integer = someDictionary.Value(“Length”).IntegerValue

rather than simply

Var boatLength As Integer = someDictionary.Value(“Length”)

It argues that Dictionary values are Variants and it is better, for some reason, to use the more verbose line of code.

Is this something that experienced human developers do? Or is this just a quirk of Gemini.

I do it because it helps my brain understand what values I’m passing around and, though I’m not sure, may be faster than relying on framework type conversion.

(post deleted by author)