One more minor issue with that casting. Now solved