Simplifying the convert method