def METHOD_NAME(cls, obj: S, dtype: DataType) -> S:
    """Convert a format-specific scalar to the given ibis datatype.
    Parameters
    ----------
    obj
        The format-specific scalar value to convert.
    dtype
        The Ibis datatype to convert to.
    Returns
    -------
    Format specific scalar corresponding to the given Ibis datatype.
    """
    raise NotImplementedError