Move string cast to View instead of wpInputText