On the semileptonic decay of charmed hadrons