Casts the input argument to an 
System.Object.
 
            
            
            
            
            
            
            
            'Declaration
 
<JetBrains.Annotations.CanBeNullAttribute()>
Public Function AsObject( _
   ByVal  As Object _
) As Object
             
        
            
            'Usage
 
Dim instance As InteropHelper
Dim obj As Object
Dim value As Object
 
value = instance.AsObject(obj)
             
        
            
            [JetBrains.Annotations.CanBeNull()]
public object AsObject( 
   object 
)
             
        
            
            [JetBrains.Annotations.CanBeNull()]
public:
Object^ AsObject( 
   Object^ 
) 
             
        
             
        
            Parameters
- obj
 
- The object to be cast.
The value of this parameter can be null (Nothing in Visual Basic).
 
            
            Return Value
Returns the input argument, cast to an 
System.Object.
This method can return null (Nothing in Visual Basic).
 
            
            
            
            
             
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
            
            See Also