My question is how can i make sure the TileList knows it
contains Gift objects and not just Objects. If i try to cast in the
details component it throws an error which means the type in the
list is not a Gift. Although i can still access the Gift fields
even though they are of type Object. e.g. gift.name etc.
giftlist.selectedItem is always of type Object when really i
should be able to cast this to type Gift.