toShortOrNull

Returns content as short only if content can be short, otherwise null.