add const variants of is_a_helper as necessary