How can I resolve the Unable to cast COM object