Add Dict conversion method.