convert(Tup) when is_tuple(Tup) -> tuple_to_list(Tup);

convert(L = [_|_]) -> list_to_tuple(L).

-spec convert(tuple()) -> list();
             (list()) -> tuple().
