Can i create custom convert function including mapping?

Can i create custom convert function including mapping?

i want to convert potential to product or any custom module, so can i create custom convert function including mapping?