[fix] type casting on view