Cast value of :text to string