The things that are valuable as a means "we can say are instrumentally valuable."
So the pain you're suffering now is actually instrumentally valuable, useful as a means, even though it's intrinsically bad.
Most of the good things on that list were instrumentally good.
But it's also instrumentally good.