Adding cast

Covering up a warning.