toInt method
Get db int field represents this value after rounding.
Implementation
IntField toInt() {
var result = IntField();
result.queryBuilder = () => 'CAST(ROUND(${buildQuery()}) AS INTEGER)';
result.parametersBuilder = () => getParameters();
return result;
}