#CloudServicesUtility exception on casting

1 messages · Page 1 of 1 (latest)

hexed flower
#

CloudServicesUtility:TryGetCloudAndLocalCacheValues with float

CloudServicesUtility:44. - CloudServices.LocalCache.GetDouble(key, (double)(object)localCacheDefaultValue);

localCacheDefaultValue is float, when trying to use TryGetCloudAndLocalCacheValues for float

so there is exception on casting (double)(object)(FLOAT) - (double)(object)localCacheDefaultValue

#

omg. in same line (T)(object)CloudServices.LocalCache.GetDouble also casting is invalid. because double->object->float is bad

crude iris
#

I will check it and update

#

You are expecting double when float was stored?

#

Will use Convert class instead.