I am writing ASP component using Microsoft J++. I am getting a casting error when I try to map the Variant object (our QACOM) that is returned from the ASP session. I don&#039t have any problem when I access our QACOM object without the session variable. How can I resolve this problem. Following is a Java code snippet:<BR><BR>*******************************<BR >IGetContextProperties objProps = null;<BR>ISessionObject iObjSession = null;<BR>IVariantDictionary ivDictionaryObjs = null;<BR>Variant v = new Variant();<BR>Variant v4 = new Variant();<BR>Variant v9 = new Variant();<BR>QACOM iQACOM = new QACOM(); <BR><BR>objProps = (IGetContextProperties)MTx.GetObjectContext();<BR> <BR>v = objProps.GetProperty("Session");<BR>iObjSession = (ISessionObject) v.getDispatch();<BR>ivDictionaryObjs = iObjSession.getContents();<BR>v4.putString("ASP_QA COM");<BR>v9 = ivDictionaryObjs.getItem(v4);<BR><BR>iQACOM = (QACOM) v9;<BR>***********************<BR>I am getting a casting error here in compile time or runtime at this line of the code.