You can use the CAST or DYNAMIC-CAST function to cast .NET object types in exactly the same way that you cast ABL user-defined types.