Remove unused var.
Use explicit conversion.