Could you not do:

$IPAdresses = $Resource.IPAddresses

$String = CStr($IPAddress[0])

If IPAdress is an array of variants, what kind of variants are they ? If they are variant strings, couldn't you just use them like this:

If $IPAdress[0] = "127.0.0.1"
EndIf

-Shawn