moving type assertion