Ensure the iterations is casted appropriately for password comparsion