InvalidCastException: Cannot cast from source type to destination type.

i have been working on a little project for a while after adding money system i have been trying to get the game to save the money but i get the error InvalidCastException: Cannot cast from source type to destination type.

full error is

InvalidCastException: Cannot cast from source type to destination type.
SaveManager+c__Iterator7.MoveNext () (at Assets/Scripts/SaveManager.cs:164)
UnityEngine.MonoBehaviour:StartCoroutine(String)
SaveManager:Start() (at Assets/Scripts/SaveManager.cs:29)

on that line is
GameManager.Instance.Characters[0].Cash = (int)o[7];
i have posted the full code here Pastiebin.com 571e2feed0044 just because is longish :slight_smile:

if anyone can help find and correct the it for me would be grate, thanks in advance

Sorry i just spotted the issue and this is now fixed