This cast to long is unnecessary.