Add Explicit Casts to hyperloop.cpp

Avoids related compilation warnings.