Convert id to int64 after saving