title: How do I use Sinon with Typescript?
body: <p>If I use sinon with typescript then how do I cast the sinon mock to an instance of my object?</p>
  
  <p>For instance a SinonMock would be returned but my controller under test may require a specific service passed in to its constructor.</p>
  
  <pre><code>var myServiceMock: MyStuff.MyService = &lt;MyStuff.MyService (sinon.mock(MyStuff.MyService));
  
  controllerUnderTest = new MyStuff.MyController(myServiceMock, $log);
  </code></pre>
  
  <p>Can sinon be used with Typescript?</p>