Need to add the type mack to the legacy functions as we not longer have an equivalent one to cast ito it.