types to records