Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 265 Bytes

cast.sh.md

File metadata and controls

12 lines (10 loc) · 265 Bytes

cast

cast -- Casts a variable.

Casts variable into a specified type.

Usage

// 1. Function form.
bool func::cast(variant* variable, string type)
// 2. Function form. (Dies if conversion fails.)
void func::cast_or_die(variant* variable, string type)