title: How to convert Boolean to Number in PL/SQL?
body: <p>I have a boolean value and I am trying to convert it to number in PL/SQL.</p>
  <pre><code>PROCEDURE Test(
     contract_ IN VARCHAR2,
     mch_code_ IN BOOLEAN)   
  IS
    val_ NUMBER;
  BEGIN
    val_ := mch_code_.to_number();
  ...some code
  END Test;
  </code></pre>
  <p>This is not working.</p>
  <p>How to convert to number from boolean in PL/SQL?</p>