Explicitly cast enum values