Add conversion functions to support bindings-generator