Remove casting to AbstractEntity

- With new proxies, can't just cast to AbstractEntity all over the place
- Instead use EntityLocal or EntityInternal interfaces.
Merge pull request #518 from aledsage/fix/Casts-to-AbstractEntity

Remove casting to AbstractEntity