Cast the object to a Point object with integer values
Point<int> toIntPoint() => Point<int>(x.toInt(), y.toInt());