pub fn to_list(arg: &Value, state: &VMState) -> Result<Vec<Value>, String>
Convert arg to a list and some error checks (without casting)