public function convertToCommunityId($id)
    {
        switch (self::getTypeOfId($id)) {
            case USER_ID_TYPE_COMMUNITY:
                return $id;
            case USER_ID_TYPE_VANITY:
                $api_interface = new ISteamUser();
                return $api_interface->ResolveVanityURL($id);
            case USER_ID_TYPE_STEAM:
                return self::steamIdToCommunityId($id);
            default:
                return FALSE;
        }
    }