Fixing conversions from redis data to proper type.