Given following code:
object value = header.DataContentType switch { DataContentType.DOUBLE => (double)BitConverter.