The cast is necessary, compile fails without it