title: Is it possible to manually define a conversion for an enum class?
body: <p>Normally you can define a cast for a class by using the following syntax:</p>
  
  <pre><code>class Test {
  public:
    explicit operator bool() { return false; }
  };
  </code></pre>
  
  <p>Is there a way to do this or something similar for an <code>enum class</code>?</p>