go interface to int code example Example: interface to int golang iAreaId := val.(int) iAreaId, ok := val.(int) // Alt. non panicking version