Added a caster for doctrine collection