def METHOD_NAME(ll: LayerList, mode='int64'):
    if not (layer := ll.selection.active):
        return
    if not isinstance(layer, Labels):
        raise NotImplementedError(
            trans._(
                "Data type conversion only implemented for labels",
                deferred=True,
            )
        )
    target_dtype = np.dtype(mode)
    if (
        np.min(layer.data) < np.iinfo(target_dtype).min
        or np.max(layer.data) > np.iinfo(target_dtype).max
    ):
        raise AssertionError(
            trans._(
                "Labeling contains values outside of the target data type range.",
                deferred=True,
            )
        )
    layer.data = layer.data.astype(np.dtype(mode))