Added convert function!

See title.