title: How can I change "_Ctype_int" to "int" in GO?
body: <p>I have a slice that I need to change from _Ctype_int to int. </p>
  
  <pre><code>fmt.Printf("Slice Type: %T", slice) //Returns Slice Type: []main._Ctype_int
  </code></pre>
  
  <p>Do you know of a simple conversion? Thank you!</p>
  
  <p>Here is the code that returns a pointer to array in C++</p>
  
  <pre><code>   #include "camera.hxx"
     #include &lt;iostream&gt;
  
     Camera::Camera()
     {
     }
  
     int* Camera::retrieveDataPointerPerBuffer() {
       const int size = 640 * 512;
       static int cameraData[size]; 
       for (int i = 0; i &lt; size; i++) {
       cameraData[i] = i;
        } //Generates dummy 512x640 camera data
        int* pSrc = cameraData;
        return pSrc;
     } //C++ file
  </code></pre>
  
  <p>This code calls the c++ function in Go. </p>
  
  <pre><code>func myCamera() {
      cam := camera.NewCamera()
      pSrc := cam.RetrieveDataPointerPerBuffer()
  
      arraySize := 512 * 640
      slice := (*[1 &lt;&lt; 30]C.int)(unsafe.Pointer(pSrc))[:arraySize:arraySize]
  
      fmt.Printf("\nSlice Type: %T\n", slice)
   }
  
   func main() {
       go myCamera()
       time.Sleep(15 * time.Millisecond)
   }
  </code></pre>
  
  <p>I am using SWIG to wrap the C++ for Go</p>