typeclass for list-tuple conversion