Converting returned datapoint aggregate info to int