Implicitly convert of StructureAdapterPtr to its const type.

Support StructureAdapterPtr where StructureAdapterConstPtr is expected
as an argument.