generate converter for point, size, rect