pulling core number parsing out of cast