add getHeader method to Record

should allow typing as well