If you have a creature equipped with a Sylvok Lifestaff, and I cast a lethal Turn to Slag on it, you won’t gain any life.
While the damage is dealt first, the creature doesn’t actually get destroyed until the spell finishes resolving – when State Based Actions are checked. By this time, the Sylvok Lifestaff is no longer around.