Extracting coefficients from equation

I am looking for a Mathematica code that finds the coefficients from an equation. So for example, when I have the equation $ax^2+bx+c$ I want to the code to spit out: {a,b,c}. Is there a quick way to do that? Thanks for any advice and help.