asAccountIdOrNull

Casts this TargetId as a AccountId and retrieves its kotlin.String value. Returns null if the TargetId is not a AccountId.