Seems like the problem was a cast on an assignment