constrains optimistic cast in ScalaReconciliationStrategy