If you look at the description of strconv.Itoa, it tells you:
strconv.Itoa
Itoa is equivalent to [FormatInt](int64(i), 10).
Therefore to avoid any issues with truncation, simply use:
strconv.FormatInt(lastId, 10)