public HomeAddress GetHomeAddress(Person person)
 {
     if (person.HomeAddress is HomeAddress)
     {
         return person.HomeAddress as HomeAddress;
     }
     return new HomeAddress()
     {
         City = person.HomeAddress.City,
         Street = person.HomeAddress.Street,
         PostalCode = person.HomeAddress.PostalCode,
         FamilyName = string.Empty
     };
 }
 public Person ResetAddress(Person person, List<Address> addresses, int index)
 {
     person.HomeAddress = addresses[index];
     return person;
 }