What's new in Swift 4.0: learn what's changed and why.
Notice how decoding doesn't require a typecast – you provide the data type name as its first parameter, so Swift infers the return type from there.Both JSONEncoder and its property list counterpart PropertyList