Check out example codes for "convert varchar to int in sqlite". It will help you in understanding the concepts better.

Code Example 1

CAST(myStringNum as REAL)
CAST(myStringNum as INT)
CAST(myStringNum as DOUBLE)

Learn ReactJs, React Native from akashmittal.com