the cast will truncate the value. checking would be costly. The doc for the base class stipulates "The 24 high-order bits of b are ignored." so the behavior would not be different from any other OutputStream.