Corrected a type equality error in unmarshal