{"action":"closed","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/639","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/639/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/639/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/639/events","html_url":"https://github.com/palantir/tslint/issues/639","id":104962422,"number":639,"title":"Enforce use of as operator instead of <cast>","user":{"login":"JKillian","id":1400151,"avatar_url":"https://avatars.githubusercontent.com/u/1400151?v=3","gravatar_id":"","url":"https://api.github.com/users/JKillian","html_url":"https://github.com/JKillian","followers_url":"https://api.github.com/users/JKillian/followers","following_url":"https://api.github.com/users/JKillian/following{/other_user}","gists_url":"https://api.github.com/users/JKillian/gists{/gist_id}","starred_url":"https://api.github.com/users/JKillian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKillian/subscriptions","organizations_url":"https://api.github.com/users/JKillian/orgs","repos_url":"https://api.github.com/users/JKillian/repos","events_url":"https://api.github.com/users/JKillian/events{/privacy}","received_events_url":"https://api.github.com/users/JKillian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/palantir/tslint/labels/P2","name":"P2","color":"bbbbbb"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Status:%20Accepting%20PRs","name":"Status: Accepting PRs","color":"0052cc"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Status:%20Work%20In%20Progress","name":"Status: Work In Progress","color":"bfe5bf"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Type:%20Rule%20Suggestion","name":"Type: Rule Suggestion","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-04T20:11:52Z","updated_at":"2016-03-16T18:48:31Z","closed_at":"2016-03-16T18:48:31Z","body":"TypeScript 1.6 introduced the [`as` operator][0] for typecasts. In `.tsx` files it is the only valid cast method, whereas in `.ts` files either cast method can be used. It makes sense to just enforce using `as` everywhere, for consistency and for ease of changing a `.ts` file to a `.tsx` file.\r\n\r\n[0]: https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in-TypeScript#new-tsx-file-extension-and-as-operator"}}