Function assertTypeOf

Uses the expect-type package to assert type matching.