Added to-integer method