Creates an instance of a class mapped from a Slice class or exception based on a Slice type ID.
The Slice type ID or compact type ID (a compact type ID is passed as its decimal string representation).
A new instance of the class or exception identified by typeId, or null if the implementation
cannot find the corresponding class.
MarshalException - Thrown when the corresponding class was found but its instantiation failed.
Creates class and exception instances from Slice type IDs.