remove error to/from int casting syntax; add `@errorToInt`/`@intToError`

See #1061
626b73e8beAndrew Kelley committed on 6/18/2018, 10:48:29 PMparenta430853
10 files changedLine totals unavailable