Added an extra helper method for conversion.