Added toDouble and toOperation