Silence static analyzer warning for BXVector

The static analyzer was complaining about a C style cast casting
away const on an integral value. Although this case was harmless
since the value was only read, the cast was changed to a static_cast.