title: plainToClass overload choice cause a type error
body: <p>I'm working on an angular project. Most of the code is not mine, but I need to get it compiled.</p>
  
  <p>While the following example compiles on one machine, it generates an error on others.</p>
  
  <pre><code>import { plainToClass } from 'class-transformer';
  
  plainToClass(MyClass, myObject).filter(true);
  </code></pre>
  
  <p>The error that I got upon running <code>ng build</code> is the following:</p>
  
  <pre><code>error TS2339: Property 'filter' does not exist on type 'MyClass'.
  </code></pre>
  
  <p><code>myObject</code> is declared as <code>any</code> but contains an array. If I change the code as follows, it works.</p>
  
  <pre><code>plainToClass(MyClass, myObject as any[]).filter(true);
  </code></pre>
  
  <p>The problem is that the same method is scattered all over the project.</p>
  
  <p>I wonder why the same piece of code is working on one machine but not the other.</p>
  
  <p>On both machines (same <code>package.json</code>) version 0.2.0 of class-transformer is used.</p>
  
  <p>It seems that one overload of the method is picked up on one machine, but not the other. And this happens rather randomly.</p>
  
  <p>Is there a way to solve this problem globally?</p>