Fix casting issue in TryCoerce function
Fix casting issue in TryCoerce function

The previous test :
if (value.GetType () == typeof(T))
                return (T) value;
didn't work if "value" type inherited from T

That meant if an external function was supposed to accept any 'object' and was fed with a 'string' it refused it with the error 'Failed to cast String To Object'
inkle/ink,ghostpattern/ink,inkle/ink,ivaylo5ev/ink,ghostpattern/ink,ivaylo5ev/ink