Moulds provided with means for tilting or inverting