title: How to convert boolean value which returned by function in select
body: <p>I had a next query, which doesn't work:</p>
  
  <pre><code>SELECT case BasePak.SomeFunction(333,4,5555) when true then 1 else 0 end 
                 from dual
  </code></pre>
  
  <p>BasePak.SomeFunction(333,4,5555) returns boolean value. How to convert result(true, false) to number or string?</p>
  
  <p>I tried cast function but not successful. </p>
  
  <p>Is there any way to convert boolean to int or string?</p>