convert method