If I have an HWND, is there a way to tell if this window is an edit control?

Also, is there a way to get a CWnd* from an HWND?

Thanks,
Jaime