Added typecasting to ModelView call