Mathf.Sqrt() returns a float as the result. Doubles and floats aren’t immediately interchangeable, although in later versions of Unity you can assign a float to a double (but never the other way around). This should always work.
decimal m = (double)Mathf.Sqrt(n);
Thanks!!! : )

