Just assign the the value of the Text property to the variable. If the types don't match, use one of the methods in the Convert class. Don't ask me about specific syntax, though, as I don't know C++/CLI.
If the above is not enough, ask your question in the MSDN Forums. Here we only know about unmanaged C++.