ment">//   OK</span>
    oldValue <span class="keyword">as</span> <span class="builtin">number</span><span class="punctuation">;</span> <span class="comment">//   OK</span>
    newValue <span class="keyword">as</span> <span class="builtin">boolean</span><span class="punctuation">;</span> <span class="comment">//  TypeScript error</span>
    oldValue <span class="keyword">as</span> <span class="builtin">boolean</span><span class="punctuation">;</span> <span class="comment">//  TypeScript error</span>
  <span