[OLINGO-475] Fixed type cast