What i am looking for is something like the following. class Foo { int a, b, c; } void main() { void[] buffer = new void[1024]; auto foo = createAt!(Foo)(buffer.ptr); } Where the createAt!(Foo) creates a class of the type Foo at the specified pointer.