Check projectile shooter's type before casting. Fixes #158