Changed signature of convert method