Add type-safety and validation to objects retrieved from NSDictionary.