---
title: astype
description: "Column.astype method in PySpark: Alias for cast()."
canonical_url: https://docs.databricks.com/aws/en/pyspark/reference/classes/column/astype
---

# astype

Alias for `cast()`.

## Syntax

```python
astype(dataType)
```

## Parameters

| Parameter  | Type            | Description      |
| ---------- | --------------- | ---------------- |
| `dataType` | DataType or str | Target data type |

## Returns

Column
