auto a = PData( [.1,.2,.3] ); assertEq( a.as!(double[]), [.1,.2,.3] ); a = "hello"; assertEq( a.as!string, "hello" );
See Implementation