Resolve weird issues looking up addresses by switching interfaceIndex to the proper type

Resolve weird issues looking up addresses by switching interfaceIndex to the proper type.

I'm not sure why this was suddenly causing issues in my app, it used to work - maybe an OS update or something, but interfaceIndex was coming in as -1, which got changed to what I'm assuming was no longer a sentinal value when the type got squashed.