title: How can I implement variant types in the CLR/Managed C++?
body: <p>In the .net CLR Object is the base for all class objects, but not basic types (e.g. int, float etc). How can I use basic types like Object?
  I.e. Like <a href="http://www.boost.org/doc/libs/1_39_0/doc/html/variant.html" rel="nofollow noreferrer">Boost.Variant</a>?</p>
  
  <p>E.g. <em>like</em> :-</p>
  
  <pre><code>object intValue( int(27) );
  if (intValue is Int32)
      ...
  
  object varArray[3];
  varArray[0] = float(3.141593);
  varArray[1] = int(-1005);
  varArray[2] = string("String");
  </code></pre>