You can't really convert one to another. The Document Form is a complex variable type that can include the value a document variable.
So using a setValue you could set the document property of the Document Form to the value of your document variable.
Something like /process_data/MyDocForm/object/document = /process_data/MyDocument
Jasmin