Conduent interview question

convert one datatype to another in sql