Prevent stream blow-outs by type-casting your streams.