Convert data between types while preserving meaning
cast
function is your bridge between natural language and structured data types. It transforms str → T
while preserving meaning, making it easy to convert:
cast
function is a convenient wrapper around Marvin’s task system - see Tasks for more details.
data
: The input data to convert (any type)target
: The target type to convert to (defaults to str
)instructions
: Optional instructions to guide the conversionagent
: Optional custom agent to usethread
: Optional thread for conversation contextcontext
: Optional additional context