avoid cast warnings when compiling boost headers

1 job for master in 1 minute and 27 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Build
passed #4018
build

00:01:27