I am not able to change the input variable data type to anything other than string. I want to simply use a variable PaletteCount to use as the End To value for a loop, but I can't because it is a string value. I tested this multiple times but it will not work with a string despite the only answer given to another person with a nearly identical issue. Right now this is what I have:

I cannot change the Data type box, left clicking does nothing, right-clicking has things faded out, and I can't think of any other way of changing this. If there is a way to change this variable to an integer either in the variable's initialization itself or with an action or a function somewhere in my flow, it would allow me to continue with what I'm doing. Thanks for any help you can give!