Add C test function for data type conversions