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