Update view to use type-casted variables