keras/src/trainers/data_adapters/array_slicing.py/TensorflowSliceable/cast
class TensorflowSliceable:    def cast(cls, x, dtype):
        from keras.src.backend.tensorflow.core import cast

        return cast(x, dtype)