NETHostObject object
The NETHostObject object holds a .NET Framework object. The NETHostObject type supports the following properties and method: 

NameDescription
AsBooleanReturns a boolean value that represents the current object's value.
AsDateReturns a date value that represents the current object's value.
AsDoubleReturns a numeric value that represents the current object's value.
AsIntReturns an integer value that represents the current object's value.
AssemblyVersionIndicates the version of the assembly being loaded.
AsStringReturns a string that represents the current object's value.
ItemExecutes the template and returns the result.
SetTemplateDefDefines inside variables for the next Template/ExecuteTemplate call.
SetValueSpecifies the value of the object.
TemplateExecutes the x-script code.
TemplateErrorIndicates the error code of the last Template call.
TemplateExceptionIndicates the detailed information about the exception that occurs.
TemplateResultIndicates the result of the last Template call.
TemplateThrowErrorSpecifies whether the execution of the template stops once an error occurs.
TypeIndicates the type of the object's value.
ValueSpecifies the value of the object.
VtTypeIndicates the type/vartype of the object's value.