Malloc the right types.