-Fixed onDamageEvent
-Added leakless typecasting for strings