Unified read-value for types and classes