function pot = can_to_mom(pot)

if pot.subtype == 'c'
  [pot.logp, pot.mu, pot.Sigma] = canonical_to_moment(pot.g, pot.h, pot.K);
  pot.subtype = 'm';
end
