Check for LivingEntity before casting to it