title: Custom Implicit Conversion in Java
body: <p>In C# I can create my own implicit conversion for my classes as follows...</p>
  
  <pre class="lang-cs prettyprint-override"><code>public static implicit operator TypeYouWantToChangeTo (ClassYouAreChanging c)  
  { 
      TypeYouWantToChangeTo x;
      //convert c to x
      return x;
  }
  </code></pre>
  
  <p>How do you make a class be able to implicitly convert to another class? Also in C# I can change implicit to explicit to also create the ability to cast manually. How do you accomplish this in Java?</p>