Added type parameter to string to number transformer