Check the type is correct before taking a pointer to the data