Even if optional, type mismatch error should be raised.