correcting return type in convert method