I agree with AWOL. You need to post all of your code. How do you know that the value is changing from 58 to 88 when being assigned. The conversion make take place somewhere else, or may not be actually happening at all, depending on how the value is printed before and after the assignment.
It is fairly impossible to post all of my code as it is a huge project.
What I can say to help you is that this value comes out of a library in uint8_t and the sensor displays that it is 58.
I then cast it to int as you can see above and later I use my http connection to send it to a client using client.print(sensorArray.value2);
It appears that it is displayed well if I use client.print(sensorArray.value2, HEX); but that is not what i prefer, since it is a generic class and not all value2's are in this format.
Instead of having to use print(x,HEX), I would like to be able to just use print(x,DEC).
Well, if it (whatever "it" is) is displaying 58 and you're using the HEX specifier, then printing in decimal will print 88.
Who says you "have" to use "print(x, HEX)"?