doctrine extensions cast added
Merge pull request #1 from kkorte/master

cast function