Fixes CastInjection
Merge pull request #99 from johnynek/bugfix/castinjection

Fixes CastInjection