<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/legacy/backend.py#L315-L318) |

DEPRECATED.

    tf.keras.backend.cast(
        x, dtype
    )

### Used in the notebooks

| Used in the tutorials |
|---|
| - [Graph regularization for document classification using natural graphs](https://www.tensorflow.org/neural_structured_learning/tutorials/graph_keras_mlp_cora) |