Also add cast to the permissions