Unwraps the result, returns data if ok, otherwise throws error.
T unwrap() { if (isErr) { throw error!; } return data!; }