- added a toDouble() method.