tries to extract an item from an object