Fix casting from double to uin16_t in datatypes compactFloat function.
Should solve compiler warning mentioned in #120