Try converting from all numeric types in getDouble (hopefully fixes #6)