1) Double casts to int, so it's not wrong, so long as you don't need floating point values.