How to access class properties from a parameter prototype without &reference assigning it but Assert fails!?!

If you pass a class as a parameter eg
myprocedure(ClassName pClassname)
and want to access its properties (havent tried calling a method) without having to create on abject reference and assigning it eg

MyProcedure   Procedure(ClassName pClassname)
MyInstantiatedClass  &ClassName
   Code
   MyInstantiatedClass  &= pClassname

you can simply do this

MyProcedure   Procedure(ClassName pClassname)
Loc:SomeVar   String
    Code
    Loc:SomeVar = pClassname.Property

BUT

Assert does not like it

So I have a method

MyClass.GetClassInstanceAddress
    Code
    self.ClassInstanceAddress = Address(self)

  MyProcedure   Procedure(ClassName pClassname)
    MyInstantiatedClass  &ClassName
       Code
       MyInstantiatedClass  &= pClassname
    Assert(MyInstantiatedClass.ClassInstanceAddress = pClassName.ClassInstanceAddress,'Should be true ie both match, but they dont')

Now does anyone know why Assert fails?

Edit.

Solved. My code was missing the ClassInstanceAddress from the parameter because the file hadnt been saved. :roll_eyes:

Edit2

Technically MyInstantiatedClass its not instantiated because its not a new class with no data, its just a reference to the existing class with its data, nothing more or less. Such a misleading example!