 //  GLibObject
 //
 //  Created by Rene Hexel on 17/4/17.
-//  Copyright © 2016, 2017, 2018, 2020 Rene Hexel.  All rights reserved.
+//  Copyright © 2016, 2017, 2018, 2020, 2021 Rene Hexel.  All rights reserved.
 //
 #if os(macOS) || os(iOS) || os(tvOS)
     import Darwin

        let ptr = pointer
        return ptr.map { $0.assumingMemoryBound(to: T.self) }
    }
    /// Generic Value accessor for unknown types.
    ///
    /// - Returns: nil
    @inlinable func get<T>() -> T? {
        if typeCheckValueHolds(type: .boolean) { return boolean as? T }
        if typeCheckValueHolds(type: .string)  { return string  as? T }

        let ptr = glibobject_value_dataptr(value_ptr)
        return UnsafePointer(ptr.assumingMemoryBound(to: T.self))
    }

    /// Generic Value accessor for Object classes.
    ///
    /// - Returns: nil
