Gear integrally cast with shaft