title: How can I convert or get the exact value from ctypes.c_byte
body: <p>So, I am using ctypes to call a dll function. I pass in the return variable by_ref(). In code it looks like:</p>
  
  <pre><code>mydll = cdll('dllpath')
  
  terminal_id = BYTE()
  print("terminal id before api call:",terminal_id)
  ret = mydll.func(input,byref(terminal_id))
  print("terminal id after api call:",terminal_id)
  </code></pre>
  
  <p>The following code prints:</p>
  
  <p><code>terminal id before api call:c_byte(0)
   terminal id after api call:c_byte(53)</code></p>
  
  <p>I have a gui to interact with the terminal from the gui the terminal id is :6380491601819081</p>
  
  <p>How can I extract this from the returned terminal_id variable?</p>