Optionals

The Swift optionals are used to ensure that nil values are handled clearly in the code. When converting a string value to an integer the initializer may fail but converting an integer to a string is straight forward.

 

Open File Image