I\'d like to add a cast to my foreach loop, but something is not working. I\'m trying to do:
ForEach ([Microsoft.SqlServer.Management.Smo.Database] $mydb in $