convert values to numbers since they can come from DB as strings