How to convert integer to double implicitly?
<pre><code>int a{5},b{2},c{9};
double d = (double)a / (double)b + (double)c;
</code></pre>

<p>Or I can use <code>static_cast</code>. Either way is verbose, especially when the formula is long. Is there a better solution?</p>