added helper functions to get value from an ItemData object.