Add C conversion convenience functions