PreInsertionCasts should take table partitions into account