Add a similar templated cast for getSubtarget off of the MachineFunction