Changing the size of a guiTexture as a health bar (using C#)

I wrote some code based on an answer to a similar question where the person used JavaScript to illustrate. However, whenever I try it the way they suggest, I get a
“Cannot modify a value type return value of ‘UnityEngine.GUITexture.pixelInset’. Consider storing the value in a temporary variable” message;

Here is the code that is pulling up the error.

//This is inside the Update function
// healthBar is the GUITexture that I assigned in the Inspector
healthBar.pixelInset.width = originalWidth*health/100f;

With C#, you have to move the information into a temporary, modify the temporary, and then reassign the values:

Rect rect = healthBar.pixelInset;
rect.width = originalWidth*health/100f;
healthBar.pixelInset = rect;