Work around the database model returning strings from numeric values