Casting machined parts