This is probably not your code but casting away return values is so very '80s.