Add convert_to method