title: Can I write a cast operator in Typescript?
body: <p>I've used JSWEET to transpile a large Java project. It has converted types like Enumeration&lt;Object> directly to Enumeration&lt;any> in TypeScript.</p>
  
  <p>In the Java world it was possible to assign an array Object[] to an Enumeration&lt;Object>.</p>
  
  <p>In Typescript I get: Type 'any[]' is not assignable to type 'Enumeration&lt;any>'</p>
  
  <p>Is there a way to extend Enumeration&lt;Object> OR any[] in such a way that TypeScript will allow this assignment to occur?</p>