Setting a state (as number, not text) from a URL parameter

I put a group on the page with Type Number, set its source to the input box value, then added a Text box to the group with its source set as the groups thing.

Works fine as a text to number converter.