asTextOrNull

Returns the part as a String if it represents text, and null otherwise