Add some type detector and caster.