title: Typescript typecasting error while using vue.js
body: <p>Typescript typecasting error while using vue.js</p>
  
  <pre><code>export interface User {
    id: number
    uuid: string
    email: string
    name: string
    role: number
  }
  
  let myObject: User
  let otherObject: any
  myObject = otherObject as User
  </code></pre>
  
  <p>error code</p>
  
  <pre><code>  http://eslint.org/docs/rules/  Parsing error: Unexpected token, expected ";"
    46 |         let otherObject: any
    47 |         // values are assigned to them, and...
  &gt; 48 |         myObject = otherObject as User    // 
    src\components\modal\LoginModal.vue:81:31
            myObject = otherObject as User
  </code></pre>
  
  <p>The ide used is vscode</p>
  
  <p>I do not know why this error is coming.</p>
  
  <p>this is.. used typescript and tslint version</p>
  
  <blockquote>
    <p>Version: typescript 2.7.2, tslint 5.9.1</p>
  </blockquote>