Handle conversion of double to other numeric types in asset loading