Add the Record type class to adapt user defined types.