'Switch to a ``dict`` representation.
Examples
>>> from sympy import Poly
>>> from sympy.abc import x, y
>>> Poly(x**2 + 2*x*y**2 - y, x, y).as_dict()
{(0, 1): -1, (1, 2): 2, (2, 0): 1}'

def as_dict(f, native=False, zero=False):

    if native:
        return f.rep.to_dict(zero=zero)
    else:
        return f.rep.to_sympy_dict(zero=zero)
