One way to declare the Session Variable is exactly how you typed it in the code above.
The type does not matter in this kinda of definition since any type match will be handled during runtime when the specific line of code will execute. :
Session["QText"] = dt.Rows[0]["QText"]
String varA = Session["QText"].ToString();
I Hope this will help you out!