I don't know how can I convert Option<BalanceOf> (subtrate specific type)to u64 (rust primitive types)?
I followed this article( How do you convert between Substrate specific types and Rust primitive types? ), it helped me while converting u64 to Option<BalanceOf using the below function.
pub fn u64_to_balance_option(input: u8) -> Option<BalanceOf<T>> {
input.try_into().ok()
}
But I also need to convert some Option<BalanceOf> types inside u64 to perform some mathematical operation and then again convert u64 to Option<BalanceOf> to put back inside my storage items.
Thank you