Gets the box value.
A debug assertion will be raised if the size of the specified data type does not match the size of the box type.