added helpers to convert types