Do type check before conversion