Closed craigminihan closed 3 years ago
FYI: the failure of casting from Int to Double was due to the number is in an List
@craigminihan
@ibigbug IMHO Convert
should be used unless you explicity know the underlying type, with JSON.NET you can't guarantee the type unless you intervene in the deserialization process
It makes sense - considering the casts can be "post-processed" or so. Thanks anyways for contributing.
Post-processing tools (between rec and play/upload) can serialize timestamps as integers which cause PowerSession to throw when casting to
double
. Rather than forcing decimal places useConvert
to mitigate the cast exception.