[VersionableBehavior] Fix exception message for toVersion