Trying to solve NetTask to NetTask ClassCast