A Fuel blockchain identity — either an IdentityAddress or an IdentityContractId.

Use the isAddress and isContractId type guards to narrow.

const id: Identity = { Address: "0xabcd...1234" };
if (isAddress(id)) {
console.log(id.Address);
}