rudimentary coercion for when type option is set