# CastColumnTypesOperationProperty

A transform operation that changes the data types of one or more columns in the dataset.

- Source: Generated code
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const castColumnTypesOperationProperty: quicksight.CfnDataSet.CastColumnTypesOperationProperty = {
  alias: 'alias',
  castColumnTypeOperations: [{
    columnName: 'columnName',
    newColumnType: 'newColumnType',

    // the properties below are optional
    format: 'format',
    subType: 'subType',
  }],
  source: {
    transformOperationId: 'transformOperationId',

    // the properties below are optional
    columnIdMappings: [{
      sourceColumnId: 'sourceColumnId',
      targetColumnId: 'targetColumnId',
    }],
  },
};
```

## Properties

- `alias`: string (required) — Alias for this operation.

- `castColumnTypeOperations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSet.CastColumnTypeOperationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSet.CastColumnTypeOperationProperty.html)[] (required) — The list of column type casting operations to perform.

- `source`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSet.TransformOperationSourceProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSet.TransformOperationSourceProperty.html) (required) — The source transform operation that provides input data for the type casting.
