error TS2348: Value of type 'typeof ObjectID' is not callable. Did you mean to include 'new'?
<p>When I convert a <code>string</code> to <code>ObjectId</code>, I use</p>

<pre><code>import * as mongoose from 'mongoose';

const objId = mongoose.Types.ObjectId(strId);
</code></pre>

<p>It works well in <strong>TypeScript 1.x</strong>, after updating to <strong>TypeScript 2.x</strong>, I got the error:</p>

<blockquote>
  <p>error TS2348: Value of type 'typeof ObjectID' is not callable. Did you
  mean to include 'new'?</p>
</blockquote>

<p>How can I solve it? Thanks</p>