Made PreInsertionCasts support SparkLogicalPlan and InMemoryColumnarTableScan