doctrine extensions cast added