title: V8 How to convert v8::Persistent<v8::Primitive> to v8::Primitive?
body: <p>I'm using V8 javascript engine and storing some values in a C++ object using this:</p>
  
  <pre><code>v8::Persistent&lt;v8::Primitive&gt;  m_Value;
  </code></pre>
  
  <p>I want to use the saved value to set another Primitive and return like this:</p>
  
  <pre><code>bool 
  MyClass::Convert(v8::Primitive&amp; oValue)
  {
     oValue.Clear();  //&lt;--Is Not a value method for Primitive. How can I clear it or set it to Null or Undefined?
     oValue= m_Value;
  }
  </code></pre>
  
  <p>This 2nd line results in a compiler error:
  binary '=' : no operator found which takes a right-hand operand of type 'v8::Persistent' (or there is no acceptable conversion)</p>
  
  <p>How do I get the Primitive value back out of the Persistent?
  I've tried to dereference m_Value.  No luck.
  This HAS to be simple...</p>