Optimistic Locking clarification?

Yes, in your case, you’d want to cast the lock version indeed.