I am not clear with your problem. Your text from a is string type right? So you can typecast it to whatever type you want! Kindly explain your problem.
Regards
I am sorry about being so vague.
for e.g i want to read a label->Text and convert it into long