In a medium saucepan, combine sugar and cornstarch until thoroughly blended. Gradually stir in cream. Add chocolate. Cook and stir over medium heat until chocolate is melted and mixture thickens and begins to boil, about 5 minutes. Remove from the heat; stir in vanilla and salt.
Pour into individual serving dishes. Cool to room temperature before serving. Garnish with whipped topping if desired.