Converting object into script

Hey guys, I’m having an issue with this line of code, it’s on the unity forums and it works fine in the C# examples but I get the error saying it can’t implicitly convert a Unity.Object into a LevelStatus, which is the script, but the unity tutorials don’t talk about this at all.

LevelStatus level = FindObjectOfType(typeof(LevelStatus));

Any ideas?

try this

LevelStatus level = (LevelStatus)FindObjectOfType(typeof(LevelStatus));