``` TB = class end; TA = class published function GetB:TB; end; var A: TA; B: TB; ... function TA.GetB:TB; begin Result:=B; end; ``` TA and TB are exposed classes. A is an exposed TA instance. In the script ``` var B: TB; begin B := A.GetB;//compile error function returns Variant instead of TB end; ``` So A.GetB returns a value of type Variant instead of TB. How to convert it to TB?