convert types to corresponding ones