Steven Schveighoffer wrote: > Question #2: Is there a way to cast a basic type to a struct/class? D 2.0 will have an opImplicitCastFrom function, so you can write e.g. struct myType { myType opImplicitCastFrom (long l) { ... } } This isn't implemented yet, but is planned. Thanks, Nathan Reed