check that the observation passed in is the correct type.