Cast nils to integers