title: Pointer to integer using reinterpret
body: <p>I'm trying to cast a pointer to another type using reinterpret_cast</p>
  
  <pre><code>class MyClassA
  {
   int x;
   int y;
   public:
      MyClassA();
      ~MyClassA();
  };
  
  class MyClassB
  {
   int x;
   int y;
   public:
      MyClassB();
      ~MyClassB();
  };
  </code></pre>
  
  <p>For example, if I cast a pointer to MyClassA to MyClassB, using reinterpret_cast would this conversion work? what about code portability?</p>
  
  <p>And also, as I noted:</p>
  
  <blockquote>
    <p>(5.2.10/4) A pointer can be explicitly converted to any integral type
    large enough to hold it.</p>
  </blockquote>
  
  <p>Does it mean any pointer e.g <code>MyClassA*</code> can only be converted to int* pointer? if i'm correct?</p>