add temporary object conversion method