Use (uint) casts in the Marshal.Read/WriteXXX () methods to speed up the alignment checks.