FabioBatSilva/doctrine2 — comment on commit 561da321a41779f449f9c449cc8f14075c161f51
File: lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php line 241
By guilhermeblanco:

You can assume the "type" will be always present.
Just grab the Type and convert right away.