cast streamTime as Number. squash nested if statement.