Handle an expected type on def forms