Squash warning: Make cast explicit

Signed-off-by: Christoffer Dall <chris@cloudcar.com>