# CastColumnTypeOperationProperty

A transform operation that casts a column to a different type.

- 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 castColumnTypeOperationProperty: quicksight.CfnDataSet.CastColumnTypeOperationProperty = {
  columnName: 'columnName',
  newColumnType: 'newColumnType',

  // the properties below are optional
  format: 'format',
  subType: 'subType',
};
```

## Properties

- `columnName`: string (required) — Column name.

- `format`: string — When casting a column from string to datetime type, you can supply a string in a format supported by Quick Sight to denote the source data format.

- `newColumnType`: string (required) — New column data type.

- `subType`: string — The sub data type of the new column.

  Sub types are only available for decimal columns that are part of a SPICE dataset.
