str_for_num()

str_to_num()

OR

name_txt.string = "24";

Check the manual for the functions listed above, they are your best bet I think.