Cardan shaft with toothed shaft