option to not return value when casting a model