Read and decode any value.
If typeId is not provided, it is read first.
typeId
dynamic read([int? typeId]);