added convenience static convenience function toPair