cast constructor for 32 bits build