I needed to add this otherwise the lambda expression was a Convert and it didn't work