if (someObject is StringBuilder) ...
StringBuilder b = someObject as StringBuilder;if (b != null) ...
StringBuilder b = (StringBuilder)someObject.