Variant.IntegerValue

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aVariant.IntegerValue

Supported for all project types and targets.

Returns the value of the Variant as an Integer.