drupal 7 entity_metadata_wrapper pack

// Unified way of getting $node->title, $user->name, ...
$wrapper->label();

// Unified way of getting $node->nid, $user->uid, ...
$wrapper->getIdentifier();

// Unified way of getting $node->type, ...
$wrapper->getBundle();
Sleepy Scarab