have a buffer of type integer (4 bytes) with 1000 elements. what is quickest method to typecast each element to short (2 bytes) before writing it a binary opened file?.