Check out example codes for "swift and xcode and convert "Int to Int16"". It will help you in understanding the concepts better.

Code Example 1

array.append(Int16(i))

Learn ReactJs, React Native from akashmittal.com