Convert Array To Data Swift 4