Boolean - Int conversion in Kotlin : <p>Is there no built-in way to convert between boolean - int in Kotlin? I am talking about the usual:</p>

<pre><code>true -&gt; 1
false -&gt; 0
</code></pre>

<p>If not, what is an idiomatic way to do it?</p>
