//----------------------------------------------------------------------------- bool DataType::GetBool() const { HRESULT hr; Bool b; hr = b.Cast( *this ); if( FAILED(hr) ) return 0; return b.Get(); }