int64 to int golang code example
Example 1: golang convert string to int64
s := "97"
n, err := strconv.ParseInt(s, 10, 64)
if err == nil {
fmt.Printf("%d of type %T", n, n)
}
Example 2: interface to int golang
iAreaId := val.(int)
iAreaId, ok := val.(int) // Alt. non panicking version