myString = "1"
If myString.ToInt() > 2 Then...
or you can use the Int() function...
myString = "1"
If Int( myString ) > 2 Then...
All objects are passed by reference, but as far as my testing has gone, it seems the data used for display is a copy, so you'll need to call SetContent and/or SetContentList again with the updated data to get the Poster and Springboard screens to update.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)