Type assertion function to ensure a result is Ok. Throws an error if the result is Err.
The result to check
If the result is Err
Type assertion function to ensure a result is Ok. Throws an error if the result is Err.