Improve getAttribute() method on ShoppingCart and CartShipInfo, so that calling code doesn't have to cast.