Made cast constructors explicit to avoid grief.