How to transform a line to a curve?

May I know how to transform a line to a curve for creating a loft along the helix? Thanks.

I think you mean a sweep ?

Exactly, thank you very much!