[as3] create TCast to String using `as` (closes #3719)