tweaks to membership providers so if we cast we can specify the member type.