Improve casting of Int to Bool (and vise versa)

Description

converts to:

... but optimally should produce:

Currently used conversion methods are (at least) marked as deprecated and produce a compiler warning:
http://take.ms/HXaOA

Environment

None

Assignee

Alex Petuschak

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

Medium
Configure