fixed type issues when getting alpaca's heart rate from database