An attempt was made to convert an optional of one type to an optional of another type: optional<type>.
The application is assigning or swapping one optional with an optional of a different type. The type of both the optionals must be identical.Ensure that the types of the optionals are identical.