How to get entity type from entity_metadata_wrapper I can use 

$entity = entity_metadata_wrapper('node', 1);
$entity-&gt;getBundle(); 


to get the node type of an entity. However, entity-wrappers can wrap other types of entities, e.g. users. When calling getBundle() on a user entity, 'user' is returned. What should I call to return the type of entity (should return 'node' in the example above)? I can see when I print_r($entity) that $entity->type is a protected field of the wrapper object.
Hmmm, I seem to have found a way (unsure if this is the 'correct' way...)

$entity = entity_metadata_wrapper('node', 1);
$info = $entity-&gt;info();  // entity info as an array
$entity_type = $info['type']; // returns 'node' for node entities