S&box Wiki

Sandbox.StringX.ToType

Syntax

static object ToType( string str, System.Type t )

Description

Try to politely convert from a string to another type

Arguments

string str
System.Type t

Returns