Check out example codes for "mysql cast to varchar". It will help you in understanding the concepts better.

Code Example 1

SELECT CAST(aField as UNSIGNED) from table; 
-- for VARCHAR use CHAR(50), INT use UNSIGNED

Learn ReactJs, React Native from akashmittal.com