Added docstring for convert().