Trying to cast a custom entity

hi, im making a custom zombie plugin and i want my custom zombie to have more maximum health.
so I tried to cast (Attributable) to the entity and change its HEALTH ATTRIBUTE but it throws an exception that Entities.CustomZombie cannot be cast to org.bukkit.entity.Damageable and same goes for Living Entity. isn’t that still a zombie?

Show your code. Did you use getBukkitEntity() for that?

Typically, you should include an if statement checking to see if CustomZombie is an instance of Damageable.