Add a conversion method