Added casting check on id