Add constructor for other number types