Fai il cast nell'evento TextChanged della textbox.