Check out example codes for "interface to int golang". It will help you in understanding the concepts better.

Code Example 1

iAreaId := val.(int)
iAreaId, ok := val.(int) // Alt. non panicking version

Learn ReactJs, React Native from akashmittal.com