Frank is right, this type of part is made with investment casting.
Typically a lost wax master with a hard shell for the casting process.
If the material is a castable plastic, you might be able to get away with a flexible silicon mold where you could peel the mold away from the part.