Case the object to a Point object with double values
Point<double> toDoublePoint() => Point<double>(x.toDouble(), y.toDouble());