$mlField = [SPFieldMultiLineText]$field
I have a field, it is of type field but I want to cast it as SPFieldMultiLineText (I can confirm that this is a valid cast, I'm assuming my syntax is bad).
The error I'm getting:
Unable to find type [SPFieldMultiLineText]: make sure that the assembly containing this type is loaded.
This is a SharePoint Management Console so all relevant SharePoint assemblies are loaded - this is not the issue.
Any pointers in the right direction of making this cast without an error?
Thanks a lot.
EDIT: For a bit more context, this is ultimately what I'm trying to achieve:
$mlField = [Microsoft.SharePoint.SPFieldMultiLineText]$field?