Integrated CAST and DIV from sqlc