In a skillet over medium heat, combine the corn, heavy cream, granulated sugar, kosher salt, black pepper, and butter.
In a small bowl, whisk together the whole milk and all-purpose flour, then pour it into the corn mixture.
Cook, stirring occasionally, until the liquid begins to thicken.
Garnish with chopped basil, if desired.