This way is not really the right way to do it, because anythign is always
going to be an object but you need to check to see if it has been set to
Nothing is what your asking. The following way is wrong for what I
understand from you message
If TypeOf (myClass) Is Object
Response.Write("myClass is object")
else
Response.Write("myClass is not object")
end if
try this way
If myClass Is Nothing
Response.Write("myClass not set")
Else
Response.Write("myClass is set")
End If